{{#adminTools}}
<div class="panel panel-default">
  <div class="panel-heading">
    <div class="panel-title">
      <i class="fa fa-fw fa-coffee"></i>
      Admin Tools
    </div>
  </div>
  <div class="panel-body">
    <form class="form-horizontal" role="form" method="post" action="{{{user.userUpdatePageUrl}}}">
      <div class="form-group container-fluid">
        <label class="col-sm-2 control-label">Role</label>
        <div class="col-sm-8">
          <select class="form-control" name="role">
          {{#availableRoles}}
            <option value="{{{id}}}" {{#selected}}selected="selected"{{/selected}}>{{name}}</option>
          {{/availableRoles}}
          </select>
        </div>
        <input type="submit" class="col-sm-2 btn btn-default" value="Save">
      </div>
    </form>
    <div class="form-group">
      <div class="input-group col-xs-12">
        <span class="input-group-btn">
          <button class="btn btn-default" id="userid-raw" data-clipboard-text="{{{user._id}}}" title="Copy _id to clipboard"><i class="octicon octicon-clippy"></i> _id</button>
        </span>
        <input class="form-control" id="userid" value="{{{user._id}}}" readonly="readonly" type="text">
        <span class="input-group-btn">
          <button class="btn btn-default" id="userid-urn" data-clipboard-text="/admin/json?model=User&id={{{user._id}}}" title="Copy URN to clipboard"><i class="octicon octicon-clippy"></i> URN</button>
        </span>
        <span class="input-group-btn">
          <a class="btn btn-default btn-" title="Raw JSON Data" href="/admin/json?model=User&id={{{user._id}}}">
              <i class="fa fa-user"></i> Raw JSON Data
          </a>
        </span>
      </div>
    </div>
    {{#adminTools.authAsUserUrl}}<a rel="nofollow" href="{{{adminTools.authAsUserUrl}}}" class="btn btn-link col-xs-12"><i class="fa fa-sign-in"></i> Auth As This User</a>{{/adminTools.authAsUserUrl}}
  </div>
</div>
{{/adminTools}}
